package com.woniuxy.service.impl;

import com.woniuxy.dao.StyleDao;
import com.woniuxy.entity.Style;
import com.woniuxy.service.StyleService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Data
@Service
public class StyleServiceImpl implements StyleService {

    @Autowired
    private StyleDao styleDao;

    /**
     * 查询所有流派
     * @return list<流派>
     */
    @Override
    public List<Style> findAllStyles() {
//        int i=1/0;
//        System.out.println(i);
        return styleDao.findAllStyles();
    }
}
